<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ModImages
 *
 * @author EaDeveloper
 */
class ModImages implements EaSoftModule {

    public $includePath = "upload/";
    public $instanceName = "ModUploader";
    public static $INSTANCE_NAME;
    public static $URL_IMAGES = "?module=ModImages&pic=";

    //put your code here
    public function getCssFiles() {
        
    }

    public function getJsFiles() {
        
    }

    public function getWindowTitle() {
        
    }

    public function main() {
        $image_data = explode(':', getParam('pic'));
        // print_r($image_data);
        $img = new ImageReader();
        $img->setCacheDir(IMAGES)
                ->setFilename(IMAGES . $image_data[0])
                ->setMaxWidth($image_data[1])
                ->setMaxHeight($image_data[1])
                ->processFile()
                ->outputThumbnail();
    }

}

?>
